package cn.script.app.start;

import javax.swing.*;

public class AppLogOut {

    public static DefaultListModel logList;


    public static synchronized void out(String out_str) {
        if (logList == null) {
            return;
        }
//        DefaultListModel dlm = new DefaultListModel();
        int size = logList.getSize();
        if (size > 30) {
            logList.clear();
        }
        logList.addElement(out_str);
    }
}
